package com.delaphone.flocash.web.action;

import com.delaphone.flocash.model.FBillServices;
import com.delaphone.flocash.model.FEnrolledUsers;
import com.delaphone.flocash.service.PaymentService;
import java.util.List;

/**
 *
 * @author dongtv
 */
public class PaymentAction extends BaseAction {

    private PaymentService payment;
    private List<FBillServices> allServices;
    private List<FEnrolledUsers> allEnrolledServices;

    public String manage_bills() {
        allEnrolledServices = payment.getEnrolledService(user.getId());
        return SUCCESS;
    }

    public String add_bill() {
        allServices = payment.getAllBillServices();
        return INPUT;
    }

    public PaymentService getPayment() {
        return payment;
    }

    public void setPayment(PaymentService payment) {
        this.payment = payment;
    }

    public List<FEnrolledUsers> getAllEnrolledServices() {
        return allEnrolledServices;
    }

    public List<FBillServices> getAllServices() {
        return allServices;
    }
}
